﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConceptsFramework.AbstractConceptElements.OperationResults
{
    public abstract class AbstractExposedConcept : AbstractBindableConcept
    {
        /// <summary>
        /// Sense is positive for ^1, ^2, ^3 etc exposure cardinality
        /// It is negative for ^(1/2), ^(1/3), ^(1/4) etc exposure cardinality
        /// </summary>
        public bool PositiveSense { get; set; }

        public int ExposureCardinality { get; set; }

        public string ID
        {
            get
            {
                if (PositiveSense)
                    return base.ID + "^" + ExposureCardinality;
                else
                {
                    return base.ID + "^(1/" + ExposureCardinality + ")";
                }
            }
        }
    }
}
